import { IsNotEmpty } from 'class-validator'
export class CreateGoodDto {
    id: number
    @IsNotEmpty({message: '物料名称不能为空'})
    name: string
    number: string
    @IsNotEmpty({message: '物料规格不能为空'})
    spec: string
    @IsNotEmpty({message: '分类ID不能为空'})
    categoryId: number
    type: number
    @IsNotEmpty({message: '物料单位不能为空'})
    unit: string
    status: number = 0
}
